/**
 * Copyright (C), 2015-2018, XXX有限公司
 * FileName: RAMJob
 * Author:   zhouheng
 * Date:     2018/7/22 18:33
 * Description: RAMjob
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.hengby.hengcrud.modular.job.model;

import lombok.extern.java.Log;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 〈一句话功能简述〉<br> 
 * 〈JDBCJob〉
 *
 * @author zhouheng
 * @create 2018/7/22
 * @since 1.0.0
 */
@Log
public class JDBCJob implements Job {

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        log.info("MyJob  is start ..................");

        log.info("Hello quzrtz  "+
                new SimpleDateFormat("yyyy-MM-dd HH:mm:ss ").format(new Date()));

        log.info("MyJob  is end .....................");
    }
}